home *** CD-ROM | disk | FTP | other *** search
/ 10,000 Great Games / 10,000 Great Games.iso / Product / 66 / data1.cab / Source_Files / Src / Scenery.cpp < prev    next >
C/C++ Source or Header  |  2000-01-16  |  761b  |  23 lines

  1. #include "stdafx.h"
  2.  
  3. cScenery *scenery_back1 = 0, *scenery_back1_belowscreen = 0, *scenery_back1_abovescreen = 0,
  4.          *scenery_back2 = 0, *scenery_back2_belowscreen = 0, *scenery_back2_abovescreen = 0,
  5.          *scenery_game1 = 0, *scenery_game1_belowscreen = 0, *scenery_game1_abovescreen = 0,
  6.          *scenery_game2 = 0, *scenery_game2_belowscreen = 0, *scenery_game2_abovescreen = 0,
  7.          *scenery_game3 = 0, *scenery_game3_belowscreen = 0, *scenery_game3_abovescreen = 0;         
  8.  
  9. cScenery::cScenery(int _x, int _y, cProperties *_orig, char *startseq)
  10.         : cGameObject(_orig)
  11. {
  12.     ASSERT (orig->objtype != 0);
  13.  
  14.     set_surface(*orig->objtype->surface);
  15.  
  16.     add_end((cList **)orig->objtype->onscreen);
  17.     
  18.     set_sequence(startseq, TRUE);
  19.     
  20.     set_position(_x, _y);
  21. }
  22.  
  23.